package com.yboot.service.boot.test.config;

import com.yboot.service.boot.test.websocket.SaTokenDestinationResolveApiImpl;
import com.yboot.starter.common.core.security.UserContext;
import com.yboot.starter.satoken.core.SaTokenUserContext;
import com.yboot.stater.websocket.core.api.DestinationResolveApi;
import org.springdoc.core.GroupedOpenApi;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 功能描述
 *
 * @author yangcs
 * @date 2025/8/19
 */
@Configuration
public class DefaultAutoConfig {
    @Bean
    public UserContext userContext() {
//        return new ShiroUserContext();
        return new SaTokenUserContext();
    }

    @Bean
    public DestinationResolveApi destinationResolveApi() {
        return new SaTokenDestinationResolveApiImpl();
    }
}
